<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        #boxid {
            width: 100px;
            height: 100px;
            position: relative;
            display: inline-block;
            overflow: hidden;
        }

        #boxid::before {
            height: 1px;
            transform: rotate(45deg);
            content: '';
            position: absolute;
            width: 100%;
            top: 50%;
            left: 0;
            margin-top: -1px;
            background: rgb(235, 112, 112);
        }
        #boxid::after {
            height: 1px;
            transform: rotate(-45deg);
            content: '';
            position: absolute;
            width: 100%;
            top: 50%;
            left: 0;
            margin-top: -1px;
            background: rgb(235, 112, 112);
        }
        #boxid2 {
            width: 100px;
            height: 100px;
            position: relative;
            display: inline-block;
            overflow: hidden;
        }
        #boxid3 {
            width: 100px;
            height: 100px;
            position: relative;
            display: inline-block;
            overflow: hidden;
        }
        #boxid3::before {
            height: 10px;
            transform: rotate(45deg);
            content: '';
            position: absolute;
            width: 100%;
            top: 50%;
            left: 0;
            margin-top: -1px;
            border-radius: 5px;
            background: rgb(112, 235, 163);
        }
        #boxid3::after {
            height: 10px;
            transform: rotate(-45deg);
            content: '';
            position: absolute;
            width: 100%;
            top: 50%;
            left: 0;
            margin-top: -1px;
            border-radius: 5px;
            background: rgb(112, 235, 167);
        }
        #ipt1{
            border: 1px solid #ff7300;
            width: 200px;
            height: 50px;
            padding: 0 20px;
            transition: all 0.5s;
            box-sizing: content-box;
        }
        #ipt1:hover{
            border-radius: 25px;
            background-color: rgba(255,255,255,0.2);
        }
    </style>
</head>

<body>
    <div id="boxid"></div>
    <div id="boxid2">
        <div id="boxid3"></div>
    </div>
    <div>
        <input type="text" value="请输入你感兴趣的话题" id="ipt1">
    </div>
</body>

</html>